package com.shiminghui.String;

public class TongJiZiFuCiShu {
    public static void main(String[] args) {

        String s = "asdxzczxvsfafdsf";

        //Scanner scanner  =  new Scanner(System.in);
        int big = 0;
        int small = 0;
        int number = 0;

        for (int i = 0; i < s.length(); i++) {
            char c = s.charAt(i);
            if (c >= 'a' && c <= 'z') {
                small++;
            } else if (c >= 'A' && c <= 'Z') {
                big++;
            } else if (c >= '0' && c <= '9') {
                number++;
            }
        }
        System.out.println(big);
        System.out.println(small);
        System.out.println(number);
    }
}
